home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SNNSV32.ZIP / SNNSv3.2 / kernel / sources / kr_pat_parse.ph < prev    next >
Text File  |  1994-04-25  |  2KB  |  59 lines

  1. /*****************************************************************************
  2.   FILE           : kr_pat_parse.ph
  3.   SHORTNAME      : pat_parse
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : parser for new pattern format; bison format 
  7.   NOTES          : impossible to use with yacc
  8.  
  9.   AUTHOR         : Michael Vogt
  10.   DATE           : 10.9.93
  11.  
  12.   CHANGED BY     : 
  13.   IDENTIFICATION : @(#)kr_pat_parse.ph    1.3 3/15/94
  14.   SCCS VERSION   : 1.3
  15.   LAST CHANGE    : 3/15/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.  
  19. ******************************************************************************/
  20.  
  21. #ifndef _KR_PAT_PARSE_DEFINED_
  22. #define _KR_PAT_PARSE_DEFINED_
  23.  
  24. /* begin global definition section */
  25.  
  26. #define CURRENT_VERSION_V       3  /* current version of pattern file        */
  27. #define CURRENT_VERSION_R       2  /* format                                 */
  28.  
  29. int parse_pattern_file(int *set);
  30.  
  31.  
  32. /* end global definition section */
  33.  
  34. /* begin private definition section */
  35.  
  36. static int    i;
  37. static int    dims[MAX_NO_OF_VAR_DIM];
  38. static int    max_i_dims[MAX_NO_OF_VAR_I_DIM];
  39. static int    max_o_dims[MAX_NO_OF_VAR_O_DIM];
  40. static int    actual_dim_count;
  41. static int    variable_input_dim;
  42. static int    variable_output_dim;
  43. static int    current_pattern;
  44. static int    next_pattern_is_input;
  45. static int    no_of_input;
  46. static int    no_of_output;
  47. static int    no_of_pattern;
  48. static int    act_size;
  49. static float    *pat_mem;
  50. static int      pattern_set;
  51. static pattern_descriptor *pattern;
  52.  
  53. static void yyerror(char *error);
  54.  
  55. /* end private definition section */
  56.  
  57. #endif
  58.  
  59.